package com.lottery.material.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author 肖拔赟
 * @Description 公共请求参数
 * @DATE Created on 2019-04-08 13:50
 */
@Data
//@SuperBuilder
//@AllArgsConstructor
//@NoArgsConstructor
@ApiModel
public class BaseBody {

    @ApiModelProperty(name = "appKey", value = "AppKey，由平台发放", required = true)
    @NotEmpty(message = "appKey不能为空")
    private String appKey;              //AppKey，由平台发放
    @ApiModelProperty(name = "timestamp", value = "时间戳", required = true)
    @NotEmpty(message = "timestamp不能为空")
    private String timestamp;           //时间戳
    @ApiModelProperty(name = "sign", value = "签名", required = true)
    @NotEmpty(message = "sign不能为空")
    private String sign;                //签名：MD5加密
    @ApiModelProperty(name = "deviceType", value = "设备类型（ios：苹果；android：安卓）", required = true)
    @NotEmpty(message = "设备类型不能为空")
    private String deviceType;          //设备类型（ios：苹果；android：安卓）
    //@Builder.Default
    @ApiModelProperty(name = "appVersion", value = "版本号", required = true)
    @NotEmpty(message = "版本号不能为空")
    private String appVersion = "V1.0";//版本号

    @ApiModelProperty(name = "userId", value = "用户唯一标识（登录的用户必传）")
    private String userId;

    @ApiModelProperty(name = "accessToken", value = "访问令牌（登录的用户必传）")
    private String accessToken;

}
